<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <h2>{{message}}</h2>
  <!--  Mustache语法中，不仅可以写变量，还可以写简单的表达式-->
  <h2>{{firstname+lastname}}</h2>
  <h2>{{firstname+' '+lastname}}</h2>
  <h2>{{firstname}} {{lastname}}</h2>
  <h2>{{counter * 2}}</h2>
</div>
<script src="../js/vue.js"></script>
<script>
  const vm=new Vue({
    el:'#app',
    data:{
      message:'你好啊!',
      firstname:'kobe',
      lastname:'bulaient',
      counter:4
    }
  })
</script>
</body>
</html>